package com.wanlian.jpush.sms.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.wanlian.jpush.push.vo.ICheckable;
import com.wanlian.util.StringUtil;

@JsonInclude(Include.NON_EMPTY)
public class ReturnCodeVo implements ICheckable {

	/**
	 * 正确时返回的msgid
	 */
	private String msg_id;

	/***
	 * 错误时返回的错误信息
	 */
	private ReturnErrorVo error;

	public String getMsg_id() {
		return msg_id;
	}

	public void setMsg_id(String msg_id) {
		this.msg_id = msg_id;
	}

	public ReturnErrorVo getError() {
		return error;
	}

	public void setError(ReturnErrorVo error) {
		this.error = error;
	}

	@Override
	public boolean checkIsAble() {
		if (StringUtil.hasValue(msg_id)) {
			return true;
		} else {
			return false;
		}
	}
}
